# 导包
from rest_framework import serializers
# 导入需要序列化的表
from course.models import Kind,Label,Course,Chapter,Knobble


class KindeSer(serializers.ModelSerializer):

    class Meta:
        model = Kind
        fields = "__all__"


class LabelSer(serializers.ModelSerializer):

    class Meta:
        model = Label
        fields = "__all__"

class CourseSer(serializers.ModelSerializer):

    class Meta:
        model = Course
        fields = "__all__"

class ChapterSer(serializers.ModelSerializer):
    class Meta:
        model = Chapter
        fields = "__all__"

class KnobbleSer(serializers.ModelSerializer):
    class Meta:
        model = Knobble
        fields = "__all__"